package com.ruoyi.driver.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 车辆信息对象 tb_car
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
public class TbCar extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 车辆Id */
    @Excel(name = "车辆Id")
    private Integer carId;

    /** 司机Id */
    @Excel(name = "司机Id")
    private Integer driveId;

    /** 车辆名称 */
    @Excel(name = "车辆名称")
    private String carName;

    /** 车牌号 */
    @Excel(name = "车牌号")
    private String carNum;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    /** 车类型 */
    @Excel(name = "车类型")
    private String carType;

    /** 车辆品牌 */
    @Excel(name = "车辆品牌")
    private String carBrand;

    /** 1:已检，2：未检 */
    @Excel(name = "1:已检，2：未检")
    private Integer isSatus;

    public void setCarId(Integer carId) 
    {
        this.carId = carId;
    }

    public Integer getCarId() 
    {
        return carId;
    }

    public void setDriveId(Integer driveId) 
    {
        this.driveId = driveId;
    }

    public Integer getDriveId() 
    {
        return driveId;
    }

    public void setCarName(String carName) 
    {
        this.carName = carName;
    }

    public String getCarName() 
    {
        return carName;
    }

    public void setCarNum(String carNum) 
    {
        this.carNum = carNum;
    }

    public String getCarNum() 
    {
        return carNum;
    }

    public void setBuyTime(Date buyTime) 
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime() 
    {
        return buyTime;
    }

    public void setCarType(String carType) 
    {
        this.carType = carType;
    }

    public String getCarType() 
    {
        return carType;
    }

    public void setCarBrand(String carBrand) 
    {
        this.carBrand = carBrand;
    }

    public String getCarBrand() 
    {
        return carBrand;
    }

    public void setIsSatus(Integer isSatus) 
    {
        this.isSatus = isSatus;
    }

    public Integer getIsSatus() 
    {
        return isSatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("carId", getCarId())
            .append("driveId", getDriveId())
            .append("carName", getCarName())
            .append("carNum", getCarNum())
            .append("buyTime", getBuyTime())
            .append("carType", getCarType())
            .append("carBrand", getCarBrand())
            .append("isSatus", getIsSatus())
            .toString();
    }
}
